<?php
if(!defined('IN_FF_BLOG') || !defined('IN_FF_BLOG_ADMIN')) {
	exit('Access Denied');
}
?>
<?php require_once('cls/cls_ini.php'); ?>
当前位置 &nbsp;&nbsp;→&nbsp;&nbsp;网站配置
  <hr align="left" />
  <DIV>
    <?php
    switch($_GET["dowhat"])
    {
    	case "u_cfg_update":u_cfg_update();break;
    }
    function u_cfg_update()
    {
    	$content=array();
    	$content['u_cfg']=$_POST;
    	$my_ini=new INI();
    	$my_ini->write('config/u_cfg.ini',$content);
    	set_config('u_cfg',true);
    	messagebox('已更新');
    }
?>
<?php
$action=SaveChange("vi_config_action",$_GET["action"],"u_cfg");
switch($action)
{
	case "u_cfg":u_cfg();break;
}
?>
<?php
function u_cfg()
{
	$u_cfg_array = parse_ini_file("config/u_cfg.ini");
?>
<form id="form3" name="form1" method="post" action="?module=config&dowhat=u_cfg_update">
<table cellpadding="5" cellspacing="1">

<tr>
        <th align="right">BLOG 名称</th>
        <td><input name="blog_name" type="text" value="<?=$u_cfg_array['blog_name']?>" size="50" /></td>
      </tr>
      <tr>
        <th align="right">BLOG 副标题</th>
        <td><input name="blog_describe" type="text" value="<?=$u_cfg_array['blog_describe']?>" size="50" /></td>
      </tr>
      <tr>
        <th align="right">BLOG 作者</th>
        <td><input name="blog_author" type="text" value="<?=$u_cfg_array['blog_author']?>" size="50" /></td>
      </tr>
	  <tr>
        <th align="right">BLOG 地址</th>
        <td><input name="blog_url" type="text" value="<?=$u_cfg_array['blog_url']?>" size="50" /></td>
      </tr>
      <tr>
        <th align="right">备案信息</th>
        <td><input name="blog_icp" type="text" value="<?=$u_cfg_array['blog_icp']?>" size="50" /></td>
      </tr>
      <tr>
        <th align="right">版权信息</th>
        <td><input name="blog_bottom" type="text" value="<?=$u_cfg_array['blog_bottom']?>" size="50" maxlength="200" /></td>
      </tr>

      <tr>
        <th align="right">首页title</th>
        <td><input name="index_title" type="text" value="<?=$u_cfg_array['index_title']?>" size="50" maxlength="50" /></td>
      </tr>
      <tr>
        <th align="right">首页keywords</th>
        <td><input name="index_keywords" type="text" value="<?=$u_cfg_array['index_keywords']?>" size="50" maxlength="50" /></td>
      </tr>
      <tr>
        <th align="right">首页description</th>
        <td><input name="index_description" type="text" value="<?=$u_cfg_array['index_description']?>" size="70" maxlength="200" /></td>
      </tr>
      <tr>
        <th align="right"><input name="template_cfg" type="hidden" value="<?=$u_cfg_array['template_cfg']?>" /></th>
        <td><input type="button" name="Submit3" value="确定修改" class="submit" onclick="this.form.submit();" /></td>
      </tr>
    </table>
	</form>
    <?php
}
?>
</DIV>